home *** CD-ROM | disk | FTP | other *** search
- Path: news.th-darmstadt.de!news
- From: Enno Sandner <enno@intellektik.informatik.th-darmstadt.de>
- Newsgroups: comp.lang.c++
- Subject: Re: sizeof(vtbl)
- Date: Wed, 10 Jan 1996 11:06:19 +0100
- Organization: Fachbereich Informatik, TH Darmstadt
- Message-ID: <30F38F9B.2781E494@intellektik.informatik.th-darmstadt.de>
- References: <4cqva7$1cu@seal.abalon.se>
- NNTP-Posting-Host: kitz.intellektik.informatik.th-darmstadt.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 4.1.3 sun4m)
-
- ken1@abalon.se wrote:
- >
- > Is it possible to know the size of the vtbl for a given class
- > at compile time (to do something like
- >
- > int x = sizeof(theclass::vtbl)
- >
- > or similar)?
- >
-
- No.
- For a specific compiler version running on a well-known system it may
- work, but there is no language support for such a thing.
- Thus it will not work in _general_.
-
- Enno
-